#!/bin/bash

if [ -z "$1" ]
  then
    echo "No config argument supplied"
else
    pm2 stop all
    pm2 delete all
    NODE_ENV=$1 NODE_CONFIG_DIR="./config" pm2 start "./run/3drepo.yml"
fi